package com.qf.czh.model;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class LoginLog {
    private Integer id ;
    private String username;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date logintime;
    private String type;

    public LoginLog(Integer id, String username, Date logintime, String type) {
        this.id = id;
        this.username = username;
        this.logintime = logintime;
        this.type = type;
    }

    public LoginLog() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Date getLogintime() {
        return logintime;
    }

    public void setLogintime(Date logintime) {
        this.logintime = logintime;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "LoginLog{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", logintime=" + logintime +
                ", type='" + type + '\'' +
                '}';
    }
}
